﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProDesDetails.ascx.cs" Inherits="AdminControl_ProDesDetails" %>
<p style="text-align: center">
    <asp:Label ID="productname" runat="server" Text="Product Name"></asp:Label>
</p>
<p style="text-align: center">
    <asp:GridView ID="prodesdetails" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" ForeColor="#333333" GridLines="None" >
        <RowStyle BackColor="#E3EAEB" />
        <Columns>
            <asp:TemplateField HeaderText="Hình Ảnh">
                <ItemTemplate>
                    <asp:Image ID="image" runat="server" AlternateText="Chưa có hình" 
                        ImageUrl="<%# Bind('imageurl') %>" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="size" HeaderText="Kích thước" />
            <asp:BoundField DataField="color" HeaderText="Màu sắc" />
            <asp:BoundField DataField="number" HeaderText="Số lượng còn lại" />
            <asp:TemplateField HeaderText="Giá">
                <ItemTemplate>
                    <asp:TextBox ID="price" runat="server" Text="<%# Bind('price') %>"></asp:TextBox>
                    VND<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="price" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="price" ErrorMessage="*" ValidationExpression="[\d]{4}[\d]+"></asp:RegularExpressionValidator>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Giảm Giá">
                <ItemTemplate>
                    <asp:TextBox ID="discount" runat="server" MaxLength="2" 
                        Text="<%# Bind('discount') %>"></asp:TextBox>
                    %<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="discount" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="discount" ErrorMessage="*" 
                        ValidationExpression="[\d]{0}[\d]+"></asp:RegularExpressionValidator>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Tùy Chỉnh">
                <ItemTemplate>
                    <table class="style1">
                        <tr>
                            <td align="center">
                                <asp:ImageButton ID="delete" runat="server" 
                                    CommandArgument="<%# Bind('Prodesid') %>" oncommand="DeleteClick" />
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:ImageButton ID="update" runat="server" 
                                    CommandArgument="<%# Bind('prodesid') %>" oncommand="UpdateClick" />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#7C6F57" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>








</p>
